import os

q1 = ["com.xiaomi.jr", "com.xiaomi.scanner", "com.xiaomi.vipaccount", "com.xiaomi.ab", "com.miui.bugreport", "com.miui.userguide", "com.miui.smarttravel", "com.miui.fmservice", "com.miui.compass", "com.miui.hybrid", "com.miui.contentextension", "com.miui.systemAdSolution", "com.miui.greenguard", "com.xiaomi.drivemode", "com.mi.health", "com.miui.newhome", "com.android.printspooler", "com.jeejen.family.miui", "com.miui.personassitant", "com.miui.screenrecorder", "com.miui.player", "com.miui.virtualsim", "com.android.email", "com.mipay.wallet", "com.miui.notes", "com.xiaomi.shop", "com.xiaomi.gamecenter", "com.miui.voiceassist", "com.miui.yellowpage", "com.miui.miservice", "com.xiaomi.smarthome", "com.android.quicksearchbox"]

for i1 in q1:
    v1 = os.popen("adb shell pm uninstall -k --user 0 %s" %i1).read()
    
    if i1 == "com.android.quicksearchbox":
        if v1[:7] != "Failure":
            os.system("adb shell am force-stop com.miui.home")
